<?



if(count($news)){
    echo "<ul>";
    
    foreach ($news as $item) {
        $item->content = Text::limit_words(strip_tags($item->content), '18', '...');
        echo "<li>
                <a href=\"".Url::site().Route::get('news')->uri(array('name' => $item->name))."\">{$item->html_title}</a>
                <p>$item->content</p>
                <span>".date("H:i d.m.Y", strtotime($item->created))."</span>
              </li>";
    }
    
    echo "</ul>";
}

?>